﻿import request from '/@/utils/request';
enum Api {
  AddTci = '/api/tci/add',
  DeleteTci = '/api/tci/delete',
  UpdateTci = '/api/tci/update',
  PageTci = '/api/tci/page',
  DetailTci = '/api/tci/detail',
}

// 增加TCI
export const addTci = (params?: any) =>
	request({
		url: Api.AddTci,
		method: 'post',
		data: params,
	});

// 删除TCI
export const deleteTci = (params?: any) => 
	request({
			url: Api.DeleteTci,
			method: 'post',
			data: params,
		});

// 编辑TCI
export const updateTci = (params?: any) => 
	request({
			url: Api.UpdateTci,
			method: 'post',
			data: params,
		});

// 分页查询TCI
export const pageTci = (params?: any) => 
	request({
			url: Api.PageTci,
			method: 'post',
			data: params,
		});

// 详情TCI
export const detailTci = (id: any) => 
	request({
			url: Api.DetailTci,
			method: 'get',
			data: { id },
		});


